import { PrismaClient } from '@prisma/client';
import { Random } from 'mockjs';
import { create } from '../helper';

export async function article() {
  create(20, async (prisma: PrismaClient) => {
    await prisma.article.create({
      data: {
        subtitle: Random.ctitle(10, 30),
        content: Random.cparagraph(30, 60),
      },
    });
  });
}
